<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/webUtilTL.tld" prefix="web"%>

<html>
  <body>

    <form METHOD="POST" ACTION="#">

      <div class="mstrPanelPortrait">
        <div class="mstrPanelTitleBar">Purge Caches</div>

        <div class="mstrPanelBody">
          <TABLE CELLSPACING="0" CELLPADDING="0"  CLASS="mstrAdminProperties"  >
            <TR>
              <TD WIDTH="100%"  CLASS="mstrAdminPropertiesValue"  >
                <table cellpadding="0" border="0" cellspacing="0">
                  <tr>
                    <td valign="top">

                      <p>
                        This page allows Admin users to purge system level caches immediately rather than waiting for the cache timeouts.
                      </p>

                      <p>
                        If Purge Web Caches checkbox is selected, all system level
                        caches in the MicroStrategy Web application will be purged. This will force the cache to be recreated
                        to pickup new changes from the MicroStrategy Servers(Intelligence Server,
                        Narrowcast Server or Web Server) instead of waiting for the caches to timeout.
                        This does not clear session (user) level caches, since logging
                        out and in again would refresh these caches.
                      </p>
                      
                      <p>
                        If Purge Resource Bundle Cache checkbox is selected, Java's internal ResourceBundle cache will be purged.
                        This will force the property files in the classpath to be reread.
                      </p>

                      <p>
                        <input type="checkbox" name="purgeWebCaches" value="1">
                          Purge Web Caches<br/>
                          <input type="checkbox" name="purgeResourceBundleCache" value="1">
                            Purge Resource Bundle Cache
                          </p>
                      <input type="submit" style="font-weight: bold" name="submit" value="Purge"/>
                      <web:purgeCaches/>
                    </td>
                  </tr>
                </table>
              </TD>
            </TR>
          </TABLE>
        </div>
      </div>
      
    </form>
  </body>
</html>
